package com.yingxin.yx.framework.commons.activiti.dto;

import cn.hutool.core.collection.CollectionUtil;
import com.yingxin.yx.framework.commons.constant.CommonConst;
import com.yingxin.yx.framework.commons.dto.PageIn;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class ActivitiInstanceQueryDto extends PageIn {

    private String userId;

    private String groupId;

    @ApiModelProperty(value = "单据编号")
    private String bizNo;

    @ApiModelProperty(value = "单据类型")
    private String bizType;

    private String bizTypeName;

    @ApiModelProperty(value = "单据编号")
    private String billNo;

    @ApiModelProperty(value = "单据类型")
    private String billType;

    private String billTypeName;

    @ApiModelProperty(value = "0 审核中  1 审核通过  -1 审核不通过 ")
    private String processApprovalStatus;

    @ApiModelProperty(value = "all 含全部")
    private List<String> checkedList;

    public String getAll() {
        return CollectionUtil.isEmpty(checkedList) ? null : (checkedList.contains("all") ? CommonConst.TRUE : null);
    }

}
